Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump vue to 3.3 #1327

Merged
merged 3 commits into from
May 11, 2023
Merged

feat: bump vue to 3.3 #1327

merged 3 commits into from
May 11, 2023

Conversation

Mister-Hope
Copy link
Member

No description provided.

@Mister-Hope Mister-Hope requested a review from meteorlxy May 11, 2023 11:19
@Mister-Hope
Copy link
Member Author

Note: eslint-plugin-vue does not add defineSlots maros yet, so there is a workaround to hide no-def error until new version that supports it.

@@ -1,6 +1,13 @@
<script setup lang="ts">
import PageMeta from '@theme/PageMeta.vue'
import PageNav from '@theme/PageNav.vue'

defineSlots<{
'top'?: (props: Record<never, never>) => any
Copy link
Member

@meteorlxy meteorlxy May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way to avoid/simplify those verbose Record<never, never> and any ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently volar complains if props are not provided, the any is expected.

See https://blog.vuejs.org/posts/vue-3-3#typed-slots-with-defineslots and vuejs/core#7982

.eslintrc.cjs Outdated Show resolved Hide resolved
@meteorlxy meteorlxy changed the title chore: use vue3.3 feat: bump vue to 3.3 May 11, 2023
@Mister-Hope
Copy link
Member Author

Done

@meteorlxy meteorlxy merged commit bebadea into main May 11, 2023
@meteorlxy meteorlxy deleted the vue3.3 branch May 11, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants